import service from '@/utils/request'

export const useOrderApi = (id: Number) => {
	return service.get('/sys/order/' + id)
}

export const useOrderSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/sys/order', dataForm)
	} else {
		return service.post('/sys/order/save', dataForm)
	}
}
export const useOrderFileApi = (dataForm: any) => {
	return service.post('/sys/order/savefile', dataForm)
}
export const useOrderListApi = (dataForm: any) => {
	return service.post('/sys/order/list', dataForm)
}
